package com.group.mall.domain.POJO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 购物车
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCart {

    private Long id;
    //名称
    private String name;

    //数量
    private Integer count;

    //金额
    private Double price;

    //图片
    private String image;

    //是否选中
    private String checked;

    //种类下标
    private Integer kindindex;

    private Integer goodsProId;

    private String version;

    private String color;

    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate createTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate updateTime;


}